import { Component } from '@angular/core';
import { PlatformLocation } from '@angular/common';
import { Router } from '@angular/router';


@Component({
  selector: 'nav-actions',
  templateUrl: './nav-actions.component.html',
  styleUrls: ['./nav-actions.component.scss']
})
export class NavActionsComponent {

  constructor(
    private _router: Router,
    private platform: PlatformLocation
  ) {}

  public isActive(link: string): boolean {
    const url = this.platform.pathname.substr(1);
    return url.includes(link);
  }

}
